package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the competitors database table.
 * 
 */
@Entity
@Table(name="competitors")
@NamedQuery(name="Competitor.findAll", query="SELECT c FROM Competitor c")
public class Competitor implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="com_id")
	private int comId;

	@Column(name="com_advantage")
	private String comAdvantage;

	@Column(name="com_disadvantage")
	private String comDisadvantage;

	@Column(name="com_name")
	private String comName;

	@Column(name="com_price")
	private BigDecimal comPrice;

	@Column(name="com_product")
	private String comProduct;

	@Column(name="com_remark")
	private String comRemark;

	@Column(name="com_tactics")
	private String comTactics;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="com_power")
	private Dictionary dictionary;

	//bi-directional many-to-one association to Opportunity
	@ManyToOne
	@JoinColumn(name="opp_id")
	private Opportunity opportunity;

	public Competitor() {
	}

	public int getComId() {
		return this.comId;
	}

	public void setComId(int comId) {
		this.comId = comId;
	}

	public String getComAdvantage() {
		return this.comAdvantage;
	}

	public void setComAdvantage(String comAdvantage) {
		this.comAdvantage = comAdvantage;
	}

	public String getComDisadvantage() {
		return this.comDisadvantage;
	}

	public void setComDisadvantage(String comDisadvantage) {
		this.comDisadvantage = comDisadvantage;
	}

	public String getComName() {
		return this.comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	public BigDecimal getComPrice() {
		return this.comPrice;
	}

	public void setComPrice(BigDecimal comPrice) {
		this.comPrice = comPrice;
	}

	public String getComProduct() {
		return this.comProduct;
	}

	public void setComProduct(String comProduct) {
		this.comProduct = comProduct;
	}

	public String getComRemark() {
		return this.comRemark;
	}

	public void setComRemark(String comRemark) {
		this.comRemark = comRemark;
	}

	public String getComTactics() {
		return this.comTactics;
	}

	public void setComTactics(String comTactics) {
		this.comTactics = comTactics;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary() {
		return this.dictionary;
	}

	public void setDictionary(Dictionary dictionary) {
		this.dictionary = dictionary;
	}

	public Opportunity getOpportunity() {
		return this.opportunity;
	}

	public void setOpportunity(Opportunity opportunity) {
		this.opportunity = opportunity;
	}

}